package org.example;

import java.io.FileOutputStream;
import java.io.IOException;

public class AsciiBinaryWriter {
    public static void main(String[] args) {
        String filePath = "ascii_raw.bin";

        try (FileOutputStream out = new FileOutputStream(filePath)) {
            for (int i = 0; i < 128; i++) {
                out.write(i);  // 直接写入原始 ASCII 字节
            }
            System.out.println("写入完成，ASCII 原始字节保存在：" + filePath);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
